package cn.hxzy.service.impl;

import cn.hxzy.domain.Professional;
import cn.hxzy.mapper.ProfessionalMapper;
import cn.hxzy.service.ProfessionalService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author niuyi
 * @since 2024-06-22
 */
@Service
public class ProfessionalServiceImpl extends ServiceImpl<ProfessionalMapper, Professional> implements ProfessionalService {
    @Autowired
    private ProfessionalMapper professionalMapper;



    @Override
    public List<Professional> selectAll(Integer schoolId) {
        return professionalMapper.selectList(new QueryWrapper<Professional>()
                .eq("school_id",schoolId)
        );
    }
}
